


//Sample code to print the data with the Analogics 2" Thermal  Bluetooth printer


//create the object for the Bluetooth_Printer_2inch_ThermalAPI class

Bluetooth_Printer_2inch_ThermalAPI preparePrintData= new Bluetooth_Printer_2inch_ThermalAPI();


//call the any  method in Bluetooth_Printer_2inch_ThermalAP class and save the return value in String variable 


String printdata=preparePrintData.font_Courier_10("Print This DATA");


//create the object for the AnalogicsThermalPrinter class

AnalogicsThermalPrinter printer=new AnalogicsThermalPrinter();

 

//call the Call_PrintertoPrint(String BTaddress, String printdata)method in 
//AnalogicsThermalPrinter class and pass the parameters to the
//Call_PrintertoPrint  method to print the data
printer.Call_PrintertoPrint("00:1F:B7:20:32:43",printdata);

// Note:- Pass the bluetooth address of your printer at the place of  '"00:1F:B7:20:32:43"